import {
  AxiosRequestHeaders,
  InternalAxiosRequestConfig
} from "@ohos/axios";
import { InterceptorHooks } from './InterceptorHooks';

/**
 * @ProjectName : MyApplication
 * @FileName : HttpRequestConfig
 * @Author : 小北哥
 * @Time : 2024/8/1
 * 定义接口管理器
 */
export interface HttpRequestConfig extends InternalAxiosRequestConfig {
  showLoading?    : boolean;    //是否展示请求loading
  checkResultCode?: boolean;    //是否检验响应结果码
  checkLoginState?: boolean;    //校验用户登陆状态
  needJumpToLogin?: boolean;    //是否需要跳转到登陆页面
  headers: AxiosRequestHeaders; // 将 headers 设置为必需
  interceptorHooks?: InterceptorHooks;
}